﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Sharp.Domain.CMSBoundedContext.VIUModule.Aggregates;
using Sharp.Domain.Model;

namespace Sharp.Domain.CMSBoundedContext.MemberModule.Aggregates
{
    public partial class Comment : AggregateRoot
    {
        public Comment()
        {
        }

        [Index]
        public Guid? ReplyId { get; set; }
        [Index]
        public Guid VIUId { get; set; }
        public Guid? UserId { get; set; }
        public decimal Score { get; set; }
        [StringLength(255)]
        public string Content { get; set; }
        public bool IsPass { get; set; }
        public string IP { get; set; }
        public int Support { get; set; }
        public int Oppose { get; set; }
        public System.DateTime CreateTime { get; set; }
        public int? Floor { get; set; }
        public int? MaxFloor { get; set; }

        [ForeignKey("VIUId")]
        public virtual VIU VIU { get; set; }

    }
}